package com.ciei.dpagm.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.sql.Timestamp;

@TableName(value = "common_person")
public class Person implements java.io.Serializable{
    @TableId(type = IdType.AUTO)
    private Integer personId;
    private Integer companyId;
    private String  personName;
    private Integer gender;
    private String email;
    private String mobileTel;
    private String telephone;
    private String userNote;
    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;
    private Integer  createUserId;

    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDelete;
    private String post;

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Person()
    {

    }
    public Integer getPersonId() {
        return personId;
    }

    public void setPersonId(Integer personId) {
        this.personId = personId;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobileTel() {
        return mobileTel;
    }

    public void setMobileTel(String mobileTel) {
        this.mobileTel = mobileTel;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getUserNote() {
        return userNote;
    }

    public void setUserNote(String userNote) {
        this.userNote = userNote;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }




    public Person(Integer personId, Integer companyId, String personName, Integer gender, String email, String mobileTel, String telephone, String userNote, Timestamp createTime, Integer createUserId) {
        this.personId = personId;
        this.companyId = companyId;
        this.personName = personName;
        this.gender = gender;
        this.email = email;
        this.mobileTel = mobileTel;
        this.telephone = telephone;
        this.userNote = userNote;
        this.createTime = createTime;
        this.createUserId = createUserId;
    }

    public Person(Integer personId, Integer companyId, String personName, Integer gender, String email, String mobileTel, String telephone, String userNote, Timestamp createTime, Integer createUserId, Integer isDelete) {
        this.personId = personId;
        this.companyId = companyId;
        this.personName = personName;
        this.gender = gender;
        this.email = email;
        this.mobileTel = mobileTel;
        this.telephone = telephone;
        this.userNote = userNote;
        this.createTime = createTime;
        this.createUserId = createUserId;
        this.isDelete = isDelete;
    }
}
